<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>体检预约服务平台 - 医通在线</title>
	<link href="templates/css/global.css" rel="stylesheet" type="text/css" />
	<link href="templates/css/layoutskin.css" rel="stylesheet" type="text/css" />
	<link href="templates/css/agency.css" rel="stylesheet" type="text/css" />
    <script src="templates/js/form.js" type="text/javascript"></script>
    <script src="templates/js/common.js" type="text/javascript"></script>	
    <script src="templates/js/func/qa.js" type="text/javascript"></script>	
    <meta content="" name="Keywords">
	<meta name="description" content="" />
</head>
<body>

<!--header st-->
<{include file="../templates/$newtpl/header.html"}>

<div class="row mb10 center_layout fix">
	<{include file="../templates/$newtpl/left.html"}>
	<div class="grid0 grid770">
		<div class="main_con main_nobd">
			<div class="subline subline_2 fix mb10"><h4>咨询/投诉详情</h4>
			</div>
			<div class="con write_box">
				<div class="con1">
					<dl class="fix">
						<dt>标题：</dt>
						<dd><{$complaintinfo.complaint_title}></dd>
					</dl>
					<dl class="fix">
						<dt>提交时间：</dt>
						<dd><{$complaintinfo.complaint_addtime}></dd>
					</dl>
					<dl class="fix">
						<dt>事件发生时间：</dt>
						<dd><{$complaintinfo.complaint_fstime}></dd>
					</dl>
					<dl class="fix">
						<dt>类型：</dt>
						<dd><{if $complaintinfo.complaint_type==1}>投诉<{/if}><{if $complaintinfo.complaint_type==2}>咨询<{/if}>
						<{if $complaintinfo.complaint_member_type==1}><font color=red>(hr发起)</font><{/if}>
						</dd>
					</dl>
					<dl class="fix">
						<dt>主题：</dt>
						<dd><{$complaintinfo.complaint_topic}></dd>
					</dl>
					<dl class="fix">
						<dt>内容：</dt>
						<dd><{$complaintinfo.complaint_content}></dd>
					</dl>
<{foreach item=info from=$answerinfo name=loop}>
  <dl class="fix">
    <dt><{$smarty.foreach.loop.iteration}>.
<{if $smarty.foreach.loop.iteration == 1}>
回复内容
<{else}>
追加回复
<{/if}>
：</dt>
    <dd>&nbsp;<{$info.answer_content}>
    &nbsp;&nbsp;&nbsp;&nbsp;
    </dd>
  </dl>
    <dl class="fix">
    <dt>
<{if $smarty.foreach.loop.iteration == 1}>
回复时间
<{else}>
追加时间
<{/if}>
：</dt>
    <dd>&nbsp;<{$info.answer_time}></dl>
  </dl>
  <{/foreach}>
					
<{foreach item=info from=$complaintinfo_1 name=loop}>
   <dl class="fix">
    <dt>&nbsp;&nbsp;<{$smarty.foreach.loop.iteration}>.追问内容：</dt>
    <dt>&nbsp;<{$info.complaint_content}>&nbsp;&nbsp;<{$info.complaint_addtime}></dt>
  </dl>
	  <{foreach item=info1 from=$info.answer name=loop1}>
	   <dl class="fix">
	    <dt>　<{$smarty.foreach.loop.iteration}>.<{$smarty.foreach.loop1.iteration}>
	<{if $smarty.foreach.loop1.iteration == 1}>
		追问回复
	<{else}>
		追加回复
	<{/if}>	
		：</dt>
	    <dt>&nbsp;<{if $info1.answer_content}><{$info1.answer_content}>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$info1.answer_time}><{else}><font color="red">未回复</font><{/if}></dt>
	  </dl>
	  <{foreachelse}>
	  <dl class="fix">
	    <dt>&nbsp;&nbsp; </dt>
	    <dt><font color="red">未回复</font></dt>
	  </dl>
	  <{/foreach}>
  <{/foreach}>
					
					
					<dl class="fix">
						<form id="myform" name="myform"  method="post" action="/index.php?action=complaintinfo&id=<{$complaintinfo.complaint_id}>">
							<dt>追加提问：</dt>
							<dd>
								<textarea name="content" id="content"></textarea>&nbsp;&nbsp;<font color="#FF0000">必填</font>
							</dd>
						</form>
					</dl>
					<div class="btn"><a class="btn_tj" href="###" title="提交"></a></div>
				</div>
			</div>
			</div>
		</div>
	</div>
</div>

<{include file="../templates/$newtpl/foot.html"}>

<div id="dialogSuss" class="div_none">
	<div class="con success">
		<div class="con fix">
			<div class="pic"></div>
			<div class="txt">
				<p>提交成功！</p>
				<p style="font:400 14px '宋体'">我们会在1个工作日内给您回复消息</p>
				<a href="####" class="btn" title="确定" onclick="closeDialog('dialogSuss')"></a>
			</div>
		</div>
	</div>
</div>

<!--脚本如下-->
<script src="templates/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.switchable2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.layout.js" type="text/javascript"></script>
<script src="templates/js/global.js" type="text/javascript"></script>

<script type="text/javascript">

	$('.btn_tj').click(function () {
	    var content = $("#content").val();
	    if(content == ''){
	    	alert('追加提问不能为空');
	    } else {
	    	$('#myform').submit();
	    }
	});
	
function success(){

		art.dialog({
			id: 'dialogSuss',
			content: document.getElementById('dialogSuss'),
			title: '信息提示',
			skin: "greenbox",
			width: 450,
			opacity: 0.2,
			lock: true,
			padding: 10,
			drag: true,
			resize: false,
			close: function () {
			}
		});
}
	
function closeDialog(dialogId) {
    art.dialog({ id: dialogId }).close();
	window.location.reload();
}
</script>

</body>
</html>